package cn.edu.xaut.mybatisers.mall.Service;

import cn.edu.xaut.mybatisers.mall.Entity.Commodity;
import cn.edu.xaut.mybatisers.mall.Entity.Favourite;
import cn.edu.xaut.mybatisers.mall.Entity.ShoppingTrolley;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpSession;
import javax.xml.soap.SAAJResult;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface ShoppingTrolleyService {
    void addCommodity(ShoppingTrolley shoppingTrolley) throws SQLException;
    List<ShoppingTrolley> countPrice(int consummer_id);
    Map<String, Object> countPrice(String orderNumber,  List<Integer> commodity_ids, HttpSession session);
    List<HashMap<String, Object>> findCommodity(int pageNum, int pageSize, HttpSession session);
//    void deleteCommodity(ShoppingTrolley shoppingTrolley);
//    void incCommodityNumber(int id);
//    void subCommodityNumber(int id);
//    void emptyCart(int consummer_id);
//    double findPrice(int id);
//    double findCount(int id);
//    boolean isMember(int id);
//    void addOne(ShoppingTrolley shoppingTrolley);
//    int checkNumber(ShoppingTrolley shoppingTrolley);
//    void subOne(ShoppingTrolley shoppingTrolley);
//    List<Favourite> isFempty(Favourite f);

}
